Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Smooth transition for Container Registry enable switch #2881

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Nov 26, 2024

Resolve #2880

Changes:
Updates the container registry list fetch behavior to use different Apollo fetch policies based on whether it's the initial fetch or a subsequent reload:

  • Initial fetch uses store-and-network to show cached data while fetching fresh data
  • Subsequent fetches use network-only to ensure fresh data

Rationale:
This change optimizes the user experience by showing cached data immediately on first load while still ensuring up-to-date data on manual refreshes.

Copy link

graphite-app bot commented Nov 26, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the size:XS ~10 LoC label Nov 26, 2024
@yomybaby yomybaby requested a review from agatha197 November 26, 2024 03:24
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@yomybaby yomybaby marked this pull request as ready for review November 26, 2024 03:25
@yomybaby yomybaby marked this pull request as draft November 26, 2024 03:25
Copy link

github-actions bot commented Nov 26, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 5.27% 395/7491
🔴 Branches
4.57% (-0% 🔻)
237/5184
🔴 Functions 3.16% 78/2471
🔴 Lines 5.19% 380/7323

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from c285c0c

@yomybaby yomybaby marked this pull request as ready for review November 26, 2024 03:26
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

graphite-app bot commented Nov 26, 2024

Merge activity

Resolve #2880

**Changes:**
Updates the container registry list fetch behavior to use different Apollo fetch policies based on whether it's the initial fetch or a subsequent reload:
- Initial fetch uses `store-and-network` to show cached data while fetching fresh data
- Subsequent fetches use `network-only` to ensure fresh data

**Rationale:**
This change optimizes the user experience by showing cached data immediately on first load while still ensuring up-to-date data on manual refreshes.
@agatha197 agatha197 force-pushed the fix/2880-enable-switch-in-registry-list branch from 17b46f7 to c285c0c Compare November 26, 2024 23:13
@github-actions github-actions bot added the area:ux UI / UX issue. label Nov 26, 2024
@graphite-app graphite-app bot merged commit c285c0c into main Nov 26, 2024
6 checks passed
@graphite-app graphite-app bot deleted the fix/2880-enable-switch-in-registry-list branch November 26, 2024 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ux UI / UX issue. size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Transition Handling for Container Registry Enable Switch in WebUI
2 participants